//package com.fingard.dsp.bank.directbank.citi01;
//
//import com.fingard.dsp.bank.directbank.bankInterface.IBatPayRec;
//import com.fingard.dsp.bank.directbank.bankInterface.IForeignCurrencyCJ;
//import com.fingard.dsp.bank.reqrespobj.batpayrec.ReqBatPayRec;
//import com.fingard.dsp.bank.reqrespobj.batpayrec.ReqQryBatPayRec;
//import com.fingard.dsp.bank.reqrespobj.batpayrec.RetAtsBatPayRec;
//import com.fingard.dsp.bank.reqrespobj.batpayrec.RetAtsQryBatPayRec;
//import com.fingard.dsp.bank.reqrespobj.foreigncurrsingle.ReqForeignCurrSingle;
//import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.ReqCJFrgCurrSingleBat;
//import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.ReqQryCJFrgCurrSingleBat;
//import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.RetAtsCJFrgCurrSingleBat;
//import com.fingard.xml.XmlTextWriter;
//
///**
// * @Description TODO
// **/
//public class CITI01ForeignCurrencyCJ extends CITI01Base implements IForeignCurrencyCJ {
//
//    @Override
//    public RetAtsBatPayRec foreignCurrPayCJ_BAT(ReqCJFrgCurrSingleBat reqCJFrgCurrSingleBat) throws Exception {
//        RetAtsBatPayRec retAts = new RetAtsBatPayRec(reqCJFrgCurrSingleBat.reqHeader);
//        XmlTextWriter xmlWriter = new XmlTextWriter();
//        writeCommonHeader(xmlWriter);
//       // writeBatFileContent(xmlWriter,reqCJFrgCurrSingleBat);
//        return null;
//    }
//
//    @Override
//    public RetAtsCJFrgCurrSingleBat qryForeignCurrPayCJ_BAT(ReqQryCJFrgCurrSingleBat reqQryCJFrgCurrSingleBat) throws Exception {
//        return null;
//    }
//
//    private void writeBatFileContent(XmlTextWriter xmlWriter, ReqForeignCurrSingle reqForeignCurrSingle) throws Exception {
//        xmlWriter.writeStartElement("GrpHdr");
//        xmlWriter.writeElementStringNotNull("MsgId", reqForeignCurrSingle.singleDetail.askNumber);
//
//        String date = reqForeignCurrSingle.singleDetail.payDate + "T" + reqForeignCurrSingle.singleDetail.payTime;
//        xmlWriter.writeElementStringNotNull("CreDtTm", date);
//        xmlWriter.writeElementStringNotNull("NbOfTxs", "1");
//        xmlWriter.writeStartElement("InitgPty");
//        xmlWriter.writeElementStringNotNull("Nm", reqForeignCurrSingle.singleDetail.payName);
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("PmtInf");
//        //流水号
//        xmlWriter.writeElementStringNotNull("PmtInfId", reqForeignCurrSingle.singleDetail.askNumber);
//        xmlWriter.writeElementStringNotNull("PmtMtd", "CHK");
//        xmlWriter.writeStartElement("PmtTpInf");
//        xmlWriter.writeStartElement("SvcLvl");
//        xmlWriter.writeElementStringNotNull("Cd", "URGP");
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeElementStringNotNull("ReqdExctnDt", reqForeignCurrSingle.singleDetail.payDate);
//        xmlWriter.writeStartElement("Dbtr");
//        xmlWriter.writeElementStringNotNull("Nm", reqForeignCurrSingle.singleDetail.payName);
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("DbtrAcct");
//        xmlWriter.writeStartElement("Id");
//        xmlWriter.writeStartElement("Othr");
//        xmlWriter.writeElementStringNotNull("Id", reqForeignCurrSingle.singleDetail.payAct);
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("DbtrAgt");
//        xmlWriter.writeStartElement("FinInstnId");
//        xmlWriter.writeElementStringNotNull("BIC", reqForeignCurrSingle.singleDetail.paySWIFTCODE);
//        xmlWriter.writeStartElement("PstlAdr");
//        xmlWriter.writeElementStringNotNull("Ctry", "HK");
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("CdtTrfTxInf");
//        xmlWriter.writeStartElement("PmtId");
//        xmlWriter.writeElementStringNotNull("EndToEndId", reqForeignCurrSingle.singleDetail.askNumber);
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("Amt");
//        String currency = convertCurToBank(reqForeignCurrSingle.singleDetail.payCur);
//        xmlWriter.writeElementAttribute("InstdAmt",reqForeignCurrSingle.singleDetail.payAmount,"Ccy",currency);
//        xmlWriter.writeEndElement();
//
//        xmlWriter.writeStartElement("ChqInstr");
//        xmlWriter.writeStartElement("DlvryMtd");
//        xmlWriter.writeElementString("Cd","MLCD");
//        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("DlvrTo");
//        xmlWriter.writeElementString("Nm","");
//        xmlWriter.writeStartElement("Adr");
//        xmlWriter.writeElementString("AdrLine","");
//        xmlWriter.writeElementString("AdrLine","");
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//
////        xmlWriter.writeElementStringNotNull("ChrgBr", FeeBearer(reqForeignCurrSingle.singleDetail.costMode));
////        xmlWriter.writeStartElement("CdtrAgt");
////        xmlWriter.writeStartElement("FinInstnId");
////        xmlWriter.writeElementStringNotNull("BIC", reqForeignCurrSingle.singleDetail.recSWIFTCODE);
////        xmlWriter.writeElementStringNotNull("Nm", reqForeignCurrSingle.singleDetail.recBankName);
////        xmlWriter.writeStartElement("PstlAdr");
////        xmlWriter.writeElementStringNotNull("AdrTp", "ADDR");
////        xmlWriter.writeElementStringNotNull("AdrLine", "TEST");
////        xmlWriter.writeEndElement();
////        xmlWriter.writeEndElement();
////        xmlWriter.writeEndElement();
//
//        xmlWriter.writeStartElement("Cdtr");
//        xmlWriter.writeElementStringNotNull("Nm", reqForeignCurrSingle.singleDetail.recName);
//        xmlWriter.writeStartElement("PstlAdr");
//        xmlWriter.writeElementStringNotNull("Ctry", "HK");
//        xmlWriter.writeElementStringNotNull("AdrTp", "ADDR");
//        xmlWriter.writeElementStringNotNull("AdrLine", "TEST");
//        xmlWriter.writeEndElement();
//        xmlWriter.writeEndElement();
//
////        xmlWriter.writeStartElement("CdtrAcct");
////        xmlWriter.writeStartElement("Id");
////        xmlWriter.writeStartElement("Othr");
////        xmlWriter.writeElementStringNotNull("Id", reqForeignCurrSingle.singleDetail.recAct);
////        xmlWriter.writeEndElement();
////        xmlWriter.writeEndElement();
////        xmlWriter.writeEndElement();
//        xmlWriter.writeStartElement("RmtInf");
//            xmlWriter.writeElementStringNotNull("Strd", reqForeignCurrSingle.singleDetail.postScript1);
//        xmlWriter.writeEndDocument();
//        xmlWriter.writeStartDocByDeclaration("\r\n"+"</Document>");
//    }
//}
